<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <link rel="stylesheet" href="Public/common/src/css/bootstrap.css" type="text/css"/>
    <link rel="stylesheet" href="Public/common/src/css/animate.css" type="text/css"/>
    <link rel="stylesheet" href="Public/common/src/js/slider/slider.css" type="text/css"/>
    <link rel="stylesheet" href="Public/common/src/css/app.css" type="text/css"/>
</head>
<body>
<section class="vbox">
    <section>
        <section class="hbox stretch">
            <!--.aside -->
            <section id="content">
                <section class="vbox">
                    <section class="scrollable padder">
                        <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                            <li><a href="#"><i class="fa fa-home"></i> 首页</a></li>
                            <li><a href="{{U('index')}}">品牌管理</a></li>
                            <li class="active">编辑品牌</li>
                        </ul>
                        <section class="panel panel-default">
                            <header class="panel-heading font-bold">
                                编辑品牌
                            </header>
                            <div class="panel-body">
                                <form class="form-horizontal" id="form" method="post" enctype="multipart/form-data">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"></label>
                                        <div class="col-sm-5"></div>                                        
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label"></label>
                                        <div class="col-sm-5"></div>                                       
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">品牌名称</label>
                                        <div class="col-sm-5">
                                            <input type="text" name="bname" required class="form-control" value="{{$oldData['bname']}}">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">排序</label>
                                       <div class="col-sm-5">
                                       		<input type="text" name="bsort" required class="form-control" value="{{$oldData['bsort']}}">
                                       </div>                                        
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">品牌Logo</label>
                                       <div class="col-sm-5 logo-td">
                                       		{{if value="$oldData['logo']"}}
                                       			<img src="{{$oldData['logo']}}" style="width: 50px;"/>
                                       			<a href="javascript:;" class="close-img">x</a>
                                       			<input type="hidden" name="logo" id="logo" value="{{$oldData['logo']}}" />
                                       		{{else}} 
                                       			<input  type="file" name="logo" id="exampleInputFile">
                                       		{{endif}}
                                       </div>                                        
                                    </div> 
								                                                                     
       								<div class="form-group">
       									<label class="col-sm-2 control-label">是否显示</label>                             
                                    	<div class="col-sm-10">
                                    		<label>
                                                                                               是：	<input type="radio" value="1" name="is_show" {{if value="$oldData['is_show']==1"}}checked{{endif}}><i></i>
                                            </label>
                                            <label>
                                                                                                否: <input type="radio" value="2" name="is_show" {{if value="$oldData['is_show']==2"}}checked{{endif}}><i></i>
                                            </label>
                                    	</div>
                                    </div>  
                                    						
                                    <div class="form-group">
                                        <div class="col-sm-4 col-sm-offset-2">
                                            <button class="btn btn-primary" id="btn" type="submit">确定编辑</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </section>
                    </section>
                </section>
            </section>
        </section>
    </section>
</section>
<script src="Public/common/src/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="Public/common//src/js/bootstrap.js"></script>
<!-- 公共 -->
<script src="Public/common/js/common.js"></script>
<link rel="stylesheet" href="Public/common/css/common.css">
		   <script type="text/javascript">
		    	$(function(){
		    		$('.close-img').click(function(){
		    			$('.logo-td').html('<input id="" type="file" name="logo">')
		    		})
		    	})
		    </script>
</body>
</html>